crPEExportToMapi
The crPEExportToDisk function exports a print job to MAPI.
Declare Function crPEExportToMapi Lib "crwrap32.dll" (ByVal printJob As Integer, ByVal toList As String, ByVal ccList As String, ByVal subject As String, ByVal message As String, ByVal FormatDLLName As String, ByVal formatType As Long, ByVal useNumFormat As Long, ByVal useDateFormat As Long, ByVal StringDelimiter As String, ByVal FieldDelimiter As String) As Integer
Parameters
printJob
| Specifies the handle of the print job that you want to export.
|
subject
| Specifies the pointer to the null-terminated string you want to appear as the subject line in the e-mail message.
|
message
| Specifies the pointer to the null-terminated string you want to appear as the body of your e-mail message.
|
FormatDLLName
| Specifies the pointer to the null-terminated string that contains the format DLL name. The DLL you use is determined by the format in which you want to export your report.
|
| To export in this format
| Use this DLL
|
| Crystal Reports Format
| u2fcr.dll
|
| Data Interchange Format
| u2fdif.dll
|
| Word for Windows Format
| u2fwordw.dll
|
| Report Definition Format
| u2frdef.dll
|
| Record Style Format (column of values)
| u2frec.dll
|
| Rich Text Format
| u2frtf.dll
|
| Comma Separated Values Format (CSV)
| u2fsepv.dll
|
| Tab Separated Values Format
| u2fsepv.dll
|
| Character Separated Values Format
| u2fsepv.dll
|
| Text Format (ASCII)
| u2ftext.dll
|
| Paginated Text Format (ASCII)
| u2ftext.dll
|
| Tab Separated Text Format
| u2ftext.dll
|
| Lotus 1-2-3 (WKS)
| u2fwks.dll
|
| Lotus 1-2-3 (WK1)
| u2fwks.dll
|
| Lotus 1-2-3 (WK3)
| u2fwks.dll
|
| Excel 2.1
| u2fxls.dll
|
| Excel 3.0
| u2fxls.dll
|
| Excel 4.0
| u2fxls.dll
|
| Excel 5.0
| u2fxls.dll
|
| HTML3 Format
| u2fhtml.dll
|
| Internet Explorer 2.0
| u2fhtml.dll
|
| Netscape 2.0
| u2fhtml.dll
|
| To export a report in this format
| Use this formatType
|
| Crystal Reports Format
| crUXFCrystalReportType
|
| Data Interchange Format
| crUXFDIFType
|
| Word for Windows Format
| crUXFWordWinType
|
| Report Definition Format
| crUXFReportDefinitionType
|
| Record Style Format (column of values)
| crUXFRecordType
|
| Rich Text Format
| crUXFRichTextFormatType
|
| Comma Separated Values Format (CSV)
| crUXFCommaSeparatedType
|
| Tab Separated Values Format
| crUXFTabSeparatedType
|
| Character Separated Values Format
| crUXFCharSeparatedType
|
| Text Format (ASCII)
| crUXFTextType
|
| Paginated Text Format (ASCII)
| crUXFPaginatedTextType
|
| Tab Separated Text Format
| crUXFTabbedTextType
|
| Lotus 1-2-3 (WKS)
| crUXFLotusWksType
|
| Lotus 1-2-3 (WK1)
| crUXFLotusWk1Type
|
| Lotus 1-2-3 (WK3)
| crUXFLotusWk3Type
|
| Excel 2.1
| crUXFXls2Type
|
| Excel 3.0
| crUXFXls3Type
|
| Excel 4.0
| crUXFXls4Type
|
| Excel 5.0
| crUXFXls5Type
|
| HTML3
| crUXFHTML3Type
|
| Internet Explorer 2.0
| crUXFExplorer2Type
|
| Netscape 2.0
| crUXFNetscape2Type
|
useNumFormat
| Specifies whether or not the program should save numbers in the same format (decimal places, negatives, etc.) that you have used in the report. Pass TRUE if you want the program to use the same format used in the report, FALSE if you want numbers saved in a format that has been optimized for the file format you have selected.
|
useDateFormat
| Specifies whether or not the program should save dates in the same format (MDY, DMY, etc.) that you used in the report. Pass TRUE if you want the program to use the same format as used in the report, FALSE if you want dates saved in a format that has been optimized for the file format you have selected.
|
StringDelimiter
| Specifies the character you want to use to enclose alphanumeric field data in the character separated values format. You can use whatever character you wish, and it must be enclosed in quotes.
|
Return Value
TRUE (1) if the call is successful, FALSE (0) if the call fails.
Remarks
- When calling crPEExportToDisk with the Paginated Text option, you can specify the number of lines per page using the useNumFormat argument.